<template>
  <div>
    <grid :columns="columns" :multi="false" :loading="true" :url="queryUrl" ref="mainGrid" height="auto" diffHeight="0" :pagination="false" rowKey="menuCode"
      :queryEntity="queryEntity">
    </grid>
  </div>
</template>
<script>
import grid from '@/components/TreeGrid'
import url from '@/const/apiURL'

export default {
  components: { grid },
  data () {
    return {
      queryUrl: url.MENU_APP_TREE_URL,
      queryEntity: { "code": "APP15906275620845638" },
      columns: [
        { label: '菜单名称', width: 120, prop: 'menuName', align: 'left' },
        { label: '权限编码', width: 180, prop: 'permission', align: 'left' }
      ],
    }
  },
  created () {
    this.$nextTick(function () {
      //this.$refs['mainGrid'].initData(this.tableData)
    })
  },
  methods: {
  }
}
</script>